package com.dsbj.mp.icardservice.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsbj.mp.icardservice.entity.Parameters;
import com.dsbj.mp.icardservice.mapper.ParametersMapper;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * 考勤参数服务类。
 * @author from gipson,cjw
 */
@Service
@Transactional
public class ParametersService extends ServiceImpl<ParametersMapper, Parameters> {

	@Resource
	private ParametersMapper parametersMapper;
	
	
	/**
	 * 根据companyno获取参数信息。
	 * @param companyno
	 * @return
	 */
	public Parameters getByCompanyno(String companyno) {
		return parametersMapper.findByCompanyno(companyno);
	}

	



}
